import { request } from '@boeyo/portal';

/**
 * 场景预览
 */
export const preview = (id) => {
  return request({
    url: `scene2d/preview/${id}`,
  });
};

/**
 * 更新测点定位
 */
export const updatePosition = (data) => {
  return request({
    url: 'scene2d/positioning',
    method: 'POST',
    data,
  });
};
